package com.zy.service.sys.Impl;

import com.zy.crud.service.Impl.BaseServiceImpl;
import com.zy.mapper.sys.ZyPermissionMapper;

import com.zy.model.sys.ZyPermission;
import com.zy.model.sys.ZyPermissionExample;

import com.zy.model.sys.ZyUser;
import com.zy.service.sys.ZyPermissionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = false, rollbackFor = Exception.class)
public class ZyPermissionServiceImpl  extends BaseServiceImpl<ZyPermissionMapper, ZyPermission, ZyPermissionExample> implements ZyPermissionService {
    @Resource
    private   ZyPermissionMapper  permissionMapper;

    public List<ZyPermission> selectPermissionByUser(ZyUser user){
        List<ZyPermission>  permissionList=permissionMapper.selectPermissionByUser(user);
        return  permissionList;
    }
}
